#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright @ 2014 OPS, Qunar Inc. (qunar.com)
#
# Author: tingfang.bao <tingfang.bao@qunar.com>
# DateTime: 15-3-10 下午2:03
# 这只是显示了run_simple可以运行任意的WSGI,为dispatch做准备
from flask import Flask
from werkzeug.serving import run_simple

app = Flask(__name__)
app.debug = True


@app.route('/', methods=['GET'])
def index():
    return 'Hello'

# 下面显示了run_simple可以跑任何一个WSGI
if __name__ == '__main__':
    run_simple('0.0.0.0', 8080, app, use_reloader=True, use_debugger=True, use_evalex=True)